﻿<!DOCTYPE html>

<html>
<head>
  <meta name="viewport" content="width=device-width" />
  <title>@ViewBag.Title</title>
  <link href="~/css/site.css" rel="stylesheet" />
  <environment include="Development">
    <link href="~/lib/twitter-bootstrap/css/bootstrap.css" rel="stylesheet" />
  </environment>
  <environment exclude="Development">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css"
          integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn"
          crossorigin="anonymous" asp-fallback-href="~/lib/twitter-bootstrap/css/bootstrap.css"
          asp-fallback-test-class="sr-only" asp-fallback-test-property="position"
          asp-fallback-test-value="absolute" asp-suppress-fallback-integrity="true">
  </environment>
</head>
<body>

  <div class="container">
    <nav class="navbar navbar-expand-sm bg-dark navbar-dark">
      <a class="navbar-brand" asp-controller="Home" asp-action="Index">
        <img src="~/images/photo.webp" width="30" height="30" />
      </a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
        <span class="navbar-toggler-icon"></span>
      </button>

      <div id="collapsibleNavbar" class="collapse navbar-collapse">
        <ul class="navbar-nav">
          <li class="nav-item mr-2">
            <a asp-controller="Home" asp-action="Index" style="color:#eee">学生列表</a>
          </li>
          <li class="nav-item">
            <a asp-controller="Home" asp-action="Create" style="color:#eee">添加学生</a>
          </li>
        </ul>
      </div>

    </nav>
    @RenderBody()
  </div>
  <script src="~/lib/jquery/jquery.js"></script>
  <script src="~/lib/twitter-bootstrap/js/bootstrap.js"></script>
  @RenderSection("Scripts", required: false)
</body>
</html>
